import Mock from "mockjs";
import "normalize.css";
import {
  DropdownItem,
  DropdownMenu,
  Image,
  Loading,
  Rate,
  Swipe,
  SwipeItem,
  Toast,
  Cell,
  Tab,
  Tabs,
  Dialog,
  Form,
  Field,
  Button,
  Cascader,
  Popup,
  Picker,
  Uploader,
  DatetimePicker,
  List,
} from "vant";
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
import Bridge from "./utils/bridge";
import { get } from "./services/axios";
import API from "@/services/index";
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(DatetimePicker);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Rate)
  .use(Loading)
  .use(Image)
  .use(Toast)
  .use(Tab)
  .use(Tabs)
  .use(Button)
  .use(Cascader)
  .use(Popup)
  .use(Picker)
  .use(Cell)
  .use(List);
Vue.use(Form);
Vue.use(Field);
Vue.use(Uploader);
const random = Mock.Random;
Vue.prototype.$random = random;
Vue.config.productionTip = false;
Vue.prototype.$bridge = Bridge;
/**
 * 拦截token,生成角色,页面初始化
 */
// console.log(process.env.NODE_ENV)
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
